﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Blog.DAL;
namespace Blog.BAL
{
    public partial class cities:tblcities
    {
        public string get_city_by_id(int con_id, int id)
        {
            DB db = new DB();
            var a =(from c in db.tblcities where c.con_id.Equals(con_id) && c.city_id.Equals(id) select c).ToList();
            return a[0].name.ToString();
        }
    }
}
